/*修改按钮*/
let change=document.getElementsByClassName("change");
/*删除按钮*/
let deleteUser=document.getElementsByClassName("delete");
/*弹窗*/
let popupWindow=document.getElementsByClassName("popupWindow");
let userNameS=document.getElementsByClassName("userNameS");
let mask=document.getElementsByClassName("mask")[0];
/*点击删除*/
for(let i=0;i<deleteUser.length;i++){
    /*点击修改或删除按钮弹出弹窗*/
    deleteUser[i].onclick=function(){
        mask.style.display="block";
        popupWindow[i].style.display="block";
        userNameS[i].innerHTML=allTd[i*10+2].innerHTML;
    }
}
/*取消按钮*/
let cancel=document.getElementsByClassName("cancel");
/*确定按钮*/
let determine=document.getElementsByClassName("determine");

let allTd=document.getElementsByTagName("td");
/*点击确定或取消按钮弹窗消失*/
for(let i=0;i<cancel.length;i++){
    cancel[i].onclick=function(){
        mask.style.display="none";
        popupWindow[i].style.display="none";
    }
}
for(let i=0;i<determine.length;i++){
    determine[i].onclick=function(){
        mask.style.display="none";
        popupWindow[i].style.display="none";
    }
}

let lookUp=document.getElementsByClassName("lookUp");
let lookUpPop=document.getElementsByClassName("lookUpPop");
let lookUpCut=document.getElementsByClassName("lookUpCut");
for(let i=0;i<lookUp.length;i++){
    lookUp[i].onclick=function(){
        mask.style.display="block";
        lookUpPop[i].style.display="block";
        // for(let j=0;j<allTd.length;j++){
        //     popInput[j].value=allTd[j].innerHTML;
        // }
    }
    lookUpCut[i].onclick=function(){
        mask.style.display="none";
        lookUpPop[i].style.display="none";
    }
}